import http from '@/plugins/axios/index.js';

// 获取用户信息
export const getUserInfo = (params) => {
  return http(`/yjz-user/lawtrain/pcUserInfo/selectUserInfoByUserId.do`, params, {
    method: 'GET'
  }).then((res) => res);
};

// 提交用户维护信息
export const applytUserInfo = (params) => {
  return http(`/yjz-user/lawtrain/pcUserInfo/updateUserInfoByUserId.do`, params, {
    method: 'post'
  }).then((res) => res);
};

// 提交用户维护信息
export const userChangePwd = (params) => {
  return http(`/yjz-user/lawtrain/pcUserInfo/updateUserPasswdByUserId.do`, params, {
    method: 'post'
  }).then((res) => res);
};
